package cc.gu.tank.sound;

import javafx.scene.media.AudioClip;

/**
 * @Author: GuSongLiao
 * @Date: 2025/9/29 9:06
 * @Description: 负责处理声音部分
 */
public class SoundEffect {

    public static void play(String src) {
        if (!src.startsWith("/")) src = "/" + src;
        AudioClip audioClip = new AudioClip(SoundEffect.class.getResource(src).toString());
        audioClip.play();
    }

}
